package com.hm.add2;

public class Coffee extends Drink implements Lotto {

    @Override
    public void taste() {
        System.out.println("我是伤心的咖啡，味道是苦的");
    }

    public Coffee(String name, double price) {
        super(name, price);
    }

    @Override
    public double lotto() {
        System.out.println(getName() + "咖啡不参与揭盖有奖活动");
        return 0;
    }
}
